package com.duobaoyu.dby.supply.biz.client.boundary.message.bean.bo;

import com.duobaoyu.dby.channel.adapter.enums.biz.message.MessageTypeEnum;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.List;

/**
 * @author liyang
 * @version 1.0.0
 * @ClassName QueryMessageBO
 * @createTime 15:56:00 2023/10/10
 */
@Data
public class QueryMessageBO implements Serializable {
    private static final long serialVersionUID = -4711892645743871176L;

    private List<Message> messages;

    @Data
    public static class Message{
        /**
         * 渠道消息ID
         */
        private String channelMessageId;
        /**
         * 更新时间
         */
        private LocalDateTime updatedTime;
        /**
         * 创建时间
         */
        private LocalDateTime createTime;
        /**
         * 是否有效
         */
        private Integer valid;
        /**
         * 消息类型
         * @see MessageTypeEnum
         */
        private String messageType;
        /**
         * 渠道消息类型
         */
        private Integer channelMessageType;
        /**
         * 客户端ID
         */
        private String clientId;
        /**
         * 消息正文
         */
        private String channelContent;
    }
}
